<?php

defined('APPLICATION_PATH')
    ||define('APPLICATION_PATH',
        realpath(dirname(__FILE__).'/application'));
defined('APPLICATION_ENV')
    ||define('APPLICATION_ENV',
        (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                    : 'developer'));
set_include_path(implode(PATH_SEPARATOR, array(
                dirname(dirname(__FILE__)).'/library',
                get_include_path(),
                                         )));
define('BLOCK_PATH',APPLICATION_PATH . '/blocks');

require_once 'Zend/Application.php';
$enviroment = APPLICATION_ENV;
$options = APPLICATION_PATH . '/configs/application.ini';
$application = new Zend_Application($enviroment, $options);
$application->bootstrap()->run();